<?php

/**
 * @author игорь
 * @copyright 2009
 */
$action_template = "category";
$category = $selected_cat;
$items_list = $obj->db->fetch_list("SELECT SQL_CALC_FOUND_ROWS $obj->id FROM $obj->table WHERE category_id = '".$selected_cat_id."' AND status = '2' ORDER BY rating DESC LIMIT $lim_from,$per_page");
if(!empty($items_list))
{
	$qnty = $obj->db->fetch_one(QUANTITY);
	$items_qnty = intval($qnty[0]);
	per_page_navigation($items_qnty,$per_page,$from);
	$items = $obj->getFullInfoByList($items_list);
	$smarty->assign("items_qnty",$items_qnty);
	$smarty->assign("items",$items);
}
$smarty->assign("category",$category);
$this->adress_string[] = array(
	'title' =>$category['title'],
	'menu_title' =>$category['title'].' ('.$items_qnty.')',
	'alias' => SITE_URL.$this->full_alias."cat_".$category['alias']."/"
);
$header = $categories[$category['alias']];
$smarty->assign("header",$header);
$this->info['title'] = $header.". ".$this->info['title'];
?>